import { createApp } from 'vue'

import App from './App.vue'
import router from './router'

import 'normalize.css'
import './assets/css/index.less'
import registerIcons from './global/register-icons'
import 'element-plus/theme-chalk/el-message.css'
import registerPinia from '@/stores'

const app = createApp(App)

app.use(registerIcons)
app.use(registerPinia)

// 注意，需要在pinia创建后加载数据，然后在路由注册完成之后才使用router
app.use(router)

app.mount('#app')
